const request = require('./request.js');

//大型活动详情
const conventionDetail = function(params) { 
  return request('v1/pub/convention/conventionDetail', '', params)
}

//局详情数据
const activityDetail = function(params) { 
  return request('v1/pub/activity/activityDetail', '', params)
}

//喜欢局接口请求
const likeOrZanConference = function(params) { 
  return request('v1/pub/convention/likeOrZanConference', '', params)
}

//加入局
const joinActivity = function(params) { 
  return request('v1/pub/activity/joinActivity', '', params)
}

//退出局
const leftActivityStatus = function(params) { 
  return request('v1/pub/activity/leftActivityStatus', '', params)
}

//查询局列表
const activityList = function(params) { 
  return request('v1/pub/activity/activityList', 'get', params)
}

//获取用户信息
const getUserInfo = function(params) { 
  return request('user/getUserInfo', 'get', params)
}

//获取验证码
const sendCode = function(params) { 
  return request('v1/pub/sms/sendCode', 'get', params)
}

//用户手机验证登录
const userVerifyLogin = function(params) { 
  return request('user/userVerifyLogin', 'get', params)
}

//上传用户照片墙文件
const uploadUserImg = function(params) { 
  return request('user/uploadUserImg', '', params)
}

//首页未来局数据
const indexFeed2 = function(params) { 
  return request('v1/pub/convention/indexFeed2', '', params)
}

//获取用户openid
const getUserH5Openid = function(params) { 
  return request('user/getUserH5Openid', 'get', params)
}

//用户-活动是否购票
const userConventionOrder = function(params) { 
  return request('v1/pub/convention/userConventionOrder', '', params)
}

//用户-购票
const placeOrder = function(params) { 
  return request('v1/pub/convention/placeOrder', '', params)
}

//获取大型活动票种
const getTicketInfos = function(params) { 
  return request('v1/pub/convention/getTicketInfos', '', params)
}

//微信支付
const signWxPay = function(params) { 
  return request('wxpay/signWxPay', 'get', params)
}

//用户-支付回调页面
const userOrder = function(params) { 
  return request('v1/pub/convention/userOrder', '', params)
}

//用户-支付回调页面
const miniProgPay = function(params) { 
  return request('wxpay/miniProgPay', '', params)
}

//上传文件
const uploadAvtar = function(params) { 
  return request('user/uploadAvtar', '', params)
}

//参加、主办、喜欢集会列表
const myConferences = function(params) { 
  return request('/v1/pub/convention/myConferences', '', params)
}

//偏好列表分类
const tagsList = function(params) { 
  return request('sys/tagsList', 'get', params)
}


module.exports = { // 暴露接口
  tagsList,
  conventionDetail,
  activityDetail,
  likeOrZanConference,
  joinActivity,
  leftActivityStatus,
  activityList,
  getUserInfo,
  sendCode,
  userVerifyLogin,
  uploadUserImg,
  indexFeed2,
  getUserH5Openid,
  userConventionOrder,
  placeOrder,
  getTicketInfos,
  signWxPay,
  userOrder,
  miniProgPay,
  uploadAvtar,
  myConferences
}